function FixupPosition(obj)
{
	document.getElementById("history_subtitle").style.top = GetTop(obj) + obj.offsetHeight + "px";
	document.getElementById("history_subtitle").style.left =  GetLeft(obj) +"px";
	document.getElementById("history_subtitle").style.width = obj.offsetWidth+"px";
}

function GetTop(obj)
{
	var offset = obj.offsetTop;
	if (obj.offsetParent != null)
		offset += GetTop(obj.offsetParent);
	return offset;
}

function GetLeft(obj)
{
	var offset = obj.offsetLeft;
	if (obj.offsetParent != null)
		offset += GetLeft(obj.offsetParent);
	return offset;
}

function ShowObject(id)
{
	document.getElementById(id).style.display = "block";
}

function HideObject(id)
{
	document.getElementById(id).style.display = "none";
}

function CreateBlogList()
{
	var src_obj  = document.getElementById("tag")
	var dest_obj = document.getElementById("bloglist");

	dest_obj.style.top =  GetTop(src_obj) + src_obj.offsetHeight+ "px";
	dest_obj.style.left =  GetLeft(src_obj) + "px";
	dest_obj.style.width = src_obj.offsetWidth + 80 + "px";

	ShowObject("bloglist");
}
